<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">

<title><?php woo_title(); ?></title>
<?php woo_meta(); ?>
<?php global $woo_options; ?>

<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( $woo_options['woo_feed_url'] ) { echo $woo_options['woo_feed_url']; } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
      
<?php wp_head(); ?>
<?php woo_head(); ?>

</head>

<body <?php body_class(); ?>>

	<div id="header">
	
		<div class="header-inside">
	
	    	<div id="logo">
	    	   
	    		<?php if ($woo_options['woo_texttitle'] <> "true") : $logo = $woo_options['woo_logo']; ?>
    			    <a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('description'); ?>">
    			        <img src="<?php if ($logo) echo $logo; else { bloginfo('template_directory'); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" />
    			    </a>
    			<?php endif; ?> 
    			
    			<?php if( is_singular() && !is_front_page() ) : ?>
    			    <span class="site-title"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></span>
    			<?php else : ?>
    			    <h1 class="site-title"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
    			<?php endif; ?>
    			    <span class="site-description"><?php bloginfo('description'); ?></span>
	    	  	
	    	</div><!-- /#logo -->
	    	
	    	<?php if ( is_single() || is_home() ) { ?>
	    	<ul id="prevnext">
	    	<?php
	    		/*
	    		$post_order = $woo_options['woo_post_order'];
	    		
	    		if ( ! in_array( $post_order, array( 'ASC', 'DESC' ) ) ) { $post_order = 'DESC'; } // End IF Statement
	    		
	    		if ( is_home() ) {
	    		
	    	?>
	    		<li id="prev"><?php previous_post_link('%link', __('Previous <small>Chapter</small>','woothemes')); ?></li>
				<li id="next"><?php next_post_link('%link', __('Next <small>Chapter</small>','woothemes')); ?></li>
	    	<?php
	    		
	    		} else {
	    			switch ( $post_order ) {
	    		
	    				case 'ASC':
	    	?>
	    		<li id="prev"><?php previous_post_link('%link', __('Previous <small>Chapter</small>','woothemes')); ?></li>
				<li id="next"><?php next_post_link('%link', __('Next <small>Chapter</small>','woothemes')); ?></li>
	    	<?php
	    				break;
	    			
	    				default:
	    	?>
	    		<li id="prev"><?php next_post_link('%link', __('Previous <small>Chapter</small>','woothemes')); ?></li>
				<li id="next"><?php previous_post_link('%link', __('Next <small>Chapter</small>','woothemes')); ?></li>
	    	<?php
	    				break;
	    		
	    			} // End SWITCH Statement
	    		
	    		} // End IF Statement
	    		*/
	    	?>
	    		<li id="prev"><?php previous_post_link('%link', __('<small>Bài</small>Trước','woothemes')); ?></li>
				<li id="next"><?php next_post_link('%link', __('<small>Bài</small>Sau','woothemes')); ?></li>
			</ul>
			<?php } ?>
		
		</div><!-- /.header-inside -->
	    
	    <div class="fix"></div>
	    
	</div><!-- /#header -->
	
	<div id="wrapper">
	<div id="wrapper-inner">
	